package com.hhq.mapper;

import com.hhq.entity.User;

import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    public List<User> getAllUser();

    public List<User> findUserByName(String loginname);

    public boolean checkAdminLogin(String loginname,String password);
    public int addUser(User user);

    public void deleteUser(String name);

    public int updateUser(User user);
}
